home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / mint / lib / mntlib44.zoo / mntlib / telldir.c < prev    next >
C/C++ Source or Header  |  1994-03-01  |  402b  |  25 lines

  1. /* telldir routine */
  2.  
  3. /* under MiNT (v0.9 or better) these use the appropriate system calls.
  4.  * under TOS or older versions of MiNT, they use Fsfirst/Fsnext
  5.  *
  6.  * Written by Eric R. Smith and placed in the public domain
  7.  */
  8.  
  9. #include <types.h>
  10. #include <limits.h>
  11. #include <dirent.h>
  12. #include "lib.h"
  13.  
  14. extern int __mint;
  15.  
  16. /* not POSIX */
  17.  
  18. off_t
  19. telldir(dirp)
  20.     DIR *dirp;
  21. {
  22.     return dirp->buf.d_off;
  23. }
  24.  
  25.